package com.twu.biblioteca;

import java.util.LinkedList;
import java.util.List;

public class ListBorrowObject {
    public   List<IBorrowObject> borrowObjects = new LinkedList<IBorrowObject>();

    public void listOfBorrowObject(List<IBorrowObject> borrowObjectList){
        System.out.println();
        for(IBorrowObject borrowObject : borrowObjectList){
            if (!borrowObject.isBorrowed()){
                System.out.println("");
                System.out.println(borrowObject);
            }

        }
    }

    public void loadListBorrowObject(String name, List<IBorrowObject> bookList){
        System.out.println(" ");
        System.out.println("                                                  "+name);
        listOfBorrowObject(bookList);
    }
}
